package net.freestu.sola.web.spider.ballerina.myUtil;

import java.util.*;
import java.net.*;


public class URLArrayList extends URLUtil{
	
	private List URLContainer;
	
	public URLArrayList(){
		
		URLContainer=new ArrayList();
	}
	
	
  public Iterator urlIterator(){
  	
  	return URLContainer.listIterator();
  }
	
	public void addURL(String u){
		
		URLContainer.add(u);
	}
		
		
   public static void main(String[] args)throws MalformedURLException{
  	
  	
    URLUtil u=URLUtilFactory.getURLUtil("ArrayList");
  	u.addURL("aaaa");
  	u.addURL("bbbb");
  	u.addURL("cccc");
  
    Iterator it=u.urlIterator();
    
    System.out.println(it.next());

  }
}